package dreamdancetiktokenumsmymongo

const (
	TriggerModeLiveBroadcast = 1 // 直播
	TriggerModeAdmin         = 2 // 后台
)

const (
	DeleteRelationship   = 0 // 关系已删除
	RelationshipBuilding = 1 // 关系建立中
	Brothers             = 2 // 兄弟
	Sisters              = 3 // 姐妹
	BestFriend           = 4 // 死党
	Girlfriends          = 5 // 闺蜜
	Siblings             = 6 // 姐弟
	BrotherAndSister     = 7 // 兄妹
	Confidant            = 8 // 知己
	Enemy                = 9 // 冤家
)

type DanceFriendEnums struct{}

var DanceFriendEnumsObject DanceFriendEnums

func (e DanceFriendEnums) Relationship() []int {
	return []int{
		DeleteRelationship,
		RelationshipBuilding,
		Brothers,
		Sisters,
		BestFriend,
		Girlfriends,
		Siblings,
		BrotherAndSister,
		Confidant,
		Enemy,
	}
}

func (e DanceFriendEnums) RelationshipNameMap() map[int]string {
	m := make(map[int]string)
	for _, s := range e.Relationship() {
		m[s] = e.RelationshipName(s)
	}
	return m
}

func (e DanceFriendEnums) RelationshipName(relationship int) string {
	switch relationship {
	case DeleteRelationship:
		return "关系已删除"
	case RelationshipBuilding:
		return "朋友"
	case Brothers:
		return "兄弟"
	case Sisters:
		return "姐妹"
	case BestFriend:
		return "死党"
	case Girlfriends:
		return "闺蜜"
	case Siblings:
		return "姐弟"
	case BrotherAndSister:
		return "兄妹"
	case Confidant:
		return "知己"
	case Enemy:
		return "冤家"
	default:
		return "未知"
	}
}
